package com.whu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whu.entity.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SupplierMapper extends BaseMapper<Supplier> {

    @Select("select * from tbl_supplier where p_id = #{pid}")
    List<Supplier> selectByPid(@Param("pid") Long pid);
}
